package com.aspose.cells;

abstract class zaok {
   protected double a;

   public abstract double a(double var1);

   public abstract double b(double var1);

   public double a() {
      return this.a;
   }

   public int a(double var1, double var3, int var5) {
      for(int var8 = 0; var8 < var5; ++var8) {
         double var6 = var1;
         double var9 = this.b(var1);
         if (Math.abs(var9) < Double.MIN_VALUE) {
            this.a = var1;
            return 2;
         }

         var1 -= this.a(var1) / var9;
         if (Math.abs(var1 - var6) <= var3) {
            this.a = var1;
            return 0;
         }
      }

      this.a = var1;
      return 1;
   }
}
